﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Comment_priview.aspx.cs" Inherits="newBlog.admin.Comment.Comment_priview" %>

<%@ Register Src="~/model/allLink.ascx" TagPrefix="uc1" TagName="allLink" %>
<% 
    if (Session["user_id"]==null) {
        Response.Write("{\"error\":\"您未登录本站\"}");
        return;
    }
    if (Convert.ToInt32(Session["user_grade"])!=1) { 
    Response.Write("{\"error\":\"您不是管理员\"}");
        return;
    }
    %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>评论管理-<%=Application["title"] %></title>
    <meta name="description" content="<%=Application["content"] %>">
    <meta name="keywords" content="<%=Application["key"] %>">
    <uc1:allLink runat="server" ID="allLink" />
    <script src="/js/admin/Comment_preview.js?<%=DateTime.Now.ToString("yyyyMMddHHmmssffff") %>"></script>
</head>
<body>
<div class="layui-row">
    <div class="layui-panel layui-clear  margin0">
    <div class="layui-row layui-col-space5 margin0">
        <div class="layui-col-md2 " style="z-index: 1">
        <div class="layui-input-inline left" style="width: 100%">
          <div class="layui-input-inline left" style="width: 49%">
            <input type="text"  class="layui-input" id="date_min" placeholder="时间间隔">
          </div>
          <div class="layui-form-mid margin0" style="width: 2%">-</div>
          <div class="layui-input-inline left" style="width: 49%;">
           <input type="text"  class="layui-input" id="date_max" placeholder="时间间隔">
          </div>
        </div>
        </div>
        <script>
            RenderDate('#date_min', 'date', false,'yyyy-MM-ddTHH:mm:ss','2015-01-01',0,'click');
            RenderDate('#date_max', 'date', false,'yyyy-MM-ddTHH:mm:ss','2015-01-01',0,'click');
        </script>
        <div class="layui-col-md2">
        <input type="text" class="layui-input" id="Comment_content" placeholder="评论内容">
        </div>
        <div class="layui-col-md2">
        <input type="text"  class="layui-input" id="Comment_username" placeholder="用户名">
        </div>

        <div class="layui-col-md2 layui-col-md-offset2">
        <input type="text" id="article_id" required lay-verify="required" placeholder="请输入文章id" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-col-md1">
        <button type="button" class="layui-btn layui-btn-primary layui-border-blue layui-btn-fluid" onclick="table_filter()">
        <i class="layui-icon layui-icon-search"></i>
        </button>
        </div>
         <div class="layui-col-md1">
        <button type="button" class="layui-btn layui-btn-primary layui-btn-fluid" onclick="window.location.reload()">
        <i class="layui-icon layui-icon-refresh"></i>
        </button>
        </div>
</div>
</div>
</div><!--条件行-->

</div><!--操作按钮-->
<div class="layui-row RowSpace">
<div class="layui-col-md10 layui-col-md-offset1">
<div class="layui-col-md2 layui-col-xs3"><button type="button" class="layui-btn layui-btn-fluid" onclick="getSelectedRowMsgDel()">删除选中</button></div>
</div>
<div class="layui-col-md10 layui-col-md-offset1">

<table id="CommentList" lay-filter="test"></table>
<script>
RenderTable("#CommentList",'','/CenterInc/view_json/Comment_json.aspx',true,[[
    { field: 'caozuo', title: '操作', fixed: 'left', type: 'checkbox' }
    ,{field: 'Id', title: 'ID', sort: true, fixed: 'left'}
  ,{field: 'User_id', title: '用户id'}
  ,{field: 'Article_id', title: '文章id', sort: true}
  ,{field: 'Content', title: '内容'}
  ,{field: 'Time', title: '时间'}
 ]],20,'','post');
</script>
</div>
</div><!--内容主体-->

</body>
</html>
